if (this.getItem('grdAllMtnItem').getSelectionModel().hasSelection() && this.getItem('grdDeviceResource').getSelectionModel().hasSelection()) {
    var resRcd = this.getItem('grdDeviceResource').getSelectionModel().getSelection()[0];
    var rcd = this.getItem('grdAllMtnItem').getSelectionModel().getSelection()[0];
    var me = this;
    YX.ZbusRpc.request({
        module: 'SresSaveDeviceMaintainDetailService',
        params: {
            detailList: [{
                resId: resRcd.get('resId'),
                itemCode: rcd.get('itemCode')
            }]
        },
        showSuccess: false,
        success: function() {
            me.getStore('AllMaintainStore').remove(rcd);
            me.loadDeviceMaintainStore({
                resId: resRcd.get('resId')
            });
        }
    });
}